package com.yudaob2b.business.service.impl;


import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yudaob2b.business.dao.ElongHotelListTempDao;
import com.yudaob2b.business.entity.po.ElongHotelListTempPO;
import com.yudaob2b.business.service.ElongHotelListTempService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * 系统用户
 *
 * @author Kidd.Tan
 * @email 298023780@qq.com
 * @date 2018-02-08
 */
@Service("elongHotelListTempService")
public class ElongHotelListTempServiceImpl extends ServiceImpl<ElongHotelListTempDao, ElongHotelListTempPO> implements ElongHotelListTempService {

    @Autowired
    private ElongHotelListTempDao elongHotelListTempDao;

    /**
     * 查询有更新的酒店列表
     * @return ElongHotelListPO的参数
     */
    public List<ElongHotelListTempPO> queryUpdateHotelList() {
        return elongHotelListTempDao.queryUpdateHotelList();
    }

    /**
     * 查询新增的酒店列表
     * @return hotel_id
     */
    public List<ElongHotelListTempPO> queryNewlyHotelList() {
        return elongHotelListTempDao.queryNewlyHotelList();
    }

    public void deleteAll() {
        elongHotelListTempDao.deleteAll();
    }
}
